package com.easy.mapper;

import com.easy.bean.GiveBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface GiveDao {
    int add(@Param("give") GiveBean give);
    int del(@Param("id") Integer id);
    int checkIfLiked(@Param("userId") Integer userId, @Param("postId") Integer postId);
    int cancelGive(@Param("userId") Integer userId, @Param("postId") Integer postId);
    int getLikeCount(@Param("postId") Integer postId);
}